﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Biljart.Model.Dao;

namespace Biljart.Model.Service
{
    class MatchService: IMatchService
    {
        private readonly IMatchDao _matchDao;

        public MatchService()
        {
            _matchDao = new MatchDao();
        }

        public Match GetMatch(long id)
        {
            return _matchDao.GetMatch(id);
        }

        public IEnumerable<Match> GetMatches()
        {
            return _matchDao.GetMatches();
        }

        public IEnumerable<Match> GetMatches(HashSet<long> ids)
        {
            return _matchDao.GetMatches(ids);
        }

        public bool AddMatch(Match match)
        {
            return _matchDao.AddMatch(match);
        }
    }
}
